package yao.identifycode;



import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

import com.github.cage.Cage;
import com.github.cage.YCage;

public class CageCreator {
	
	public static void main(String[] args) throws IOException {
		Cage cage = new YCage();
		 
	    OutputStream os = new FileOutputStream("D:\\2.jpg", false);
	    try {
	      cage.draw(cage.getTokenGenerator().next(), os);
	    } finally {
	      os.close();
	    }
	}

}
